﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using A2DFramework.MVCFramework.Results;
using A2DFramework.MVCFramework.HttpAttributes;

namespace MvcAppDemo.Controllers
{
    public class UserController
    {
        public static Json GetUser([HttpQueryString("x_user")]
                                        int userId,

                                     [HttpQueryString("msg")]
                                        string msg)
        {
            Json json = new Json();
            json.IsSuccess = true;

            json.Data = new
            {
                Field1 = userId,
                Field2 = msg
            };
            return json;
        }
    }
}